<?php
/**
 * Created by PhpStorm.
 * User: WUHENG
 * Date: 2022/10/6
 * Time: 22:43
 */

namespace app\index\model;


use think\Model;

class Comments extends Model
{
    public function user(){
        return $this->hasMany('User','uID','uID');
    }
    public function art(){
        return $this->hasMany('article','artID','artID');
    }
}